/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * tameshi
 * Copyright (C) Massimiliano Maniscalco 2011, 2012 <massi.neptune@yahoo.com>
 * 
tameshi is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * tameshi is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _TESTSCELTAMULTDOMANDE_H_
#define _TESTSCELTAMULTDOMANDE_H_

#include "test_sceltamult.h"
#include "domanda.h"

class TestSceltaMultDomande: public TestSceltaMult 
{
public:
	inline TestSceltaMultDomande ( Glib::RefPtr<Gtk::Builder> _bldr, list<Domanda> *sel );
	inline ~TestSceltaMultDomande ();
	void run_test ( void );

protected:
	void on_edit_clicked ( void );
	void update_window ( void );
	void on_risposta ( char tasto = -1 );
	void next_question ( void );

private:
	list<Domanda> *_contenuto;
	list<Domanda>::iterator _domandaCorrente;
	
};

inline TestSceltaMultDomande::
TestSceltaMultDomande ( Glib::RefPtr<Gtk::Builder> _bldr, list<Domanda> *sel )
: _contenuto ( sel ), _domandaCorrente ( sel->begin() )//, _resultCtrl ( new ResultTestParole ( _bldr, sel ) )
{
	init_test_scelta_mult ( _bldr );
	connect_signals ();
}

inline TestSceltaMultDomande::
~TestSceltaMultDomande ()
{
	delete _contenuto;
}

#endif // _TESTSCELTAMULTDOMANDE_H_
